<?xml version="1.0" encoding="ISO8859-1" standalone="no"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
	<xsl:output encoding="ISO8859-1" method="html" indent="yes"/>

	<xsl:template match="/">
		<html>
			<center>
				<h2>Lista de Paises</h2>
				<table border="1" borderwidth="2">
					<tr>
						<th>Nombre</th>
						<th>Latitud</th>
						<th>Longitud</th>
					</tr>
					<xsl:apply-templates/>
				</table>
			</center>
		</html>
	</xsl:template>

	<xsl:template match="objeto">
		<xsl:choose>
			<xsl:when test='@clase="Pais"'>
				<tr>
					<xsl:apply-templates/>
				</tr>
			</xsl:when>
			<xsl:when test='@clase="Posicion"'>
				<xsl:apply-templates/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>

	<xsl:template match="campo">
		<xsl:apply-templates/>
	</xsl:template>

	<xsl:template match="primitivo">
		<td><xsl:apply-templates/></td>
	</xsl:template>
</xsl:stylesheet>